package com.xiaoshuidi.cloud.module.rooms.iotfegin;

import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomhouse.vo.DeviceListByNosReqVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @BelongsProject: lease-module-rooms
 * @BelongsPackage: com.xiaoshuidi.cloud.module.rooms.iotfegin
 * @Author: James
 * @CreateTime: 2023-06-15  11:57
 * @Description: TODO @James 把这些不用的东西删掉
 * @Version: 1.0
 */
@FeignClient(name = ConfigServiceName.IOT_SERVICE_NAME, path = "/device", fallbackFactory = IotHystrixFallBackFactory.class, decode404 = true)
public interface IotDeviceFeginService {
    @PostMapping(value = "/findDeviceList/deviceNosPage", consumes = MediaType.APPLICATION_JSON_VALUE)
    String getDeviceList(@RequestBody DeviceListByNosReqVO deviceListByNosReqVO, @RequestHeader Integer userId);
}
